@file:OptIn(ExperimentalMaterial3Api::class)

package com.universally.example.app.page

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.Button
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.compose.universally.components.BaseScaffold
import com.compose.universally.components.NavHostPageOptions
import com.compose.universally.components.TextMedium
import com.compose.universally.components.navigate
import com.universally.example.app.Route
import com.universally.example.app.const.CS

@Composable
fun MainPage(navHostPageOptions: NavHostPageOptions) {
    BaseScaffold(titleText = "Universally",
        enableNavigationIcon = false,
        contentColor = CS.Black,
        content = {
            Column(
                modifier = Modifier
                    .padding(16.dp)
                    .verticalScroll(rememberScrollState())
            ) {
                Button(onClick = {
                    navigate(Route.Text.name)
                }) {
                    TextMedium("Text")
                }
            }
        })
}

